﻿using UnityEngine;
using System.Collections;

public class OnClickBeh : MonoBehaviour
{
    public GameObject Obj;
    public bool Istag = false;
    public GameObject mDescription;
	// Use this for initialization
	void Start () 
    {
        UIEventListener.Get(Obj).onClick = OnClick;
	}
	
	// Update is called once per frame
	

    public void OnClick(GameObject Obj)
    {
        Istag=!Istag;
        mDescription.SetActive(Istag);
    }
}
